/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package estg.dae.projecto.broker.controllers;

import estg.dae.projecto.broker.model.Bank;
import java.util.Collection;
import javax.ejb.Local;

/**
 *
 * @author mario
 */
@Local
public interface BrokerSessionLocal {

    public boolean registerBank(Bank bank);
    public void unregisterBank(Bank bank);
    public boolean isBankRegistered(Bank bank);

    public Collection<Bank> getAllBanks();

    public void saveBank(Bank bank) throws Exception;

    public void updateBank(Bank bank);

    public Bank getBank(long id);

    public Bank getBank(String code);

    public boolean existsBank(String code);

}
